<div id="dt_example" class="example_alt_pagination">
    <table class="table table-striped table-hover table-bordered pull-left" id="data-table">
      <thead>
        <tr>
          <th>
            Name
          </th>
          <th>
            Email
          </th>
          <th>
            Admin User
          </th>
          <th>
            Action
          </th>
        </tr>
      </thead>
      <tbody>
       <% @users.each do |u|%>
      <tr>
            <td style="word-wrap:break-word;">
              <%= "#{u.first_name} #{u.last_name}"%>
            </td>
            <td>
              <%= u.email%>
            </td>
            <td>
              <%= u.admin ? %{<span class="fs1" aria-label="check" data-icon="&#xe0fe;"}.html_safe : nil %>
            </td>
            <td>
              <%= link_to "Edit", admin_get_user_path(u.id), {:style => "width:70px", :class => "btn btn-inverse"}%>
            </td>
          </tr>
     <% end %>
      </tbody>
    </table>
    <div class="clearfix">
    </div>
  </div>
</div>

<script type="text/javascript">
function dataTablePagination(){
  $('#data-table').dataTable({
      "sPaginationType": "full_numbers"
    });
};

$(document).ready(dataTablePagination());
</script>